<?php

namespace app\enterprise\controller;

use app\enterprise\model\TrainType as trainTypeModel;

/**
 * 培训类型
 */
class TrainType extends Enterprise
{


    public function trainTypeTree()
    {
        $list = trainTypeModel::getList([]);

        $tree = arrayToTree($list);

        return app('json')->success([
            'list' => $tree
        ]);
    }

}